from flask import Flask
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
import os


def create_app(config_name):
    app = Flask(__name__)
    app.secret_key = os.urandom(12)
    from .main import main as main_blueprint
    app.register_blueprint(main_blueprint)

    return app